<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic
  PUBLIC "-//OASIS//DTD DITA Composite//EN" "ditabase.dtd">
<topic id="topic1" xml:lang="en"><title id="ht141670">pg_stat_operations</title><body><p>The view <codeph>pg_stat_operations</codeph> shows details about the
last operation performed on a database object (such as a table, index,
view or database) or a global object (such as a role).</p><table id="ht141982"><title>pg_catalog.pg_stat_operations</title><tgroup cols="4"><colspec colnum="1" colname="col1" colwidth="131pt"/><colspec colnum="2" colname="col2" colwidth="86pt"/><colspec colnum="3" colname="col3" colwidth="85pt"/><colspec colnum="4" colname="col4" colwidth="147pt"/><thead><row><entry colname="col1">column</entry><entry colname="col2">type</entry><entry colname="col3">references</entry><entry colname="col4">description</entry></row></thead><tbody><row><entry colname="col1"><codeph>classname</codeph></entry><entry colname="col2">text</entry><entry colname="col3"/><entry colname="col4">The name of the system table in the <codeph>pg_catalog</codeph> schema where
              the record about this object is stored (<codeph>pg_class</codeph>=relations,
                <codeph>pg_database</codeph>=databases,<p><codeph>pg_namespace</codeph>=schemas,</p><p><codeph>pg_authid</codeph>=roles)</p></entry></row><row><entry colname="col1"><codeph>objname</codeph></entry><entry colname="col2">name</entry><entry colname="col3"/><entry colname="col4">The name of the object.</entry></row><row><entry colname="col1"><codeph>objid</codeph></entry><entry colname="col2">oid</entry><entry colname="col3"/><entry colname="col4">The OID of the object.</entry></row><row><entry colname="col1"><codeph>schemaname</codeph></entry><entry colname="col2">name</entry><entry colname="col3"/><entry colname="col4">The name of the schema where the object resides.</entry></row><row><entry colname="col1"><codeph>usestatus</codeph></entry><entry colname="col2">text</entry><entry colname="col3"/><entry colname="col4">The status of the role who performed the last operation on the object
                (<codeph>CURRENT</codeph>=a currently active role in the system,
                <codeph>DROPPED</codeph>=a role that no longer exists in the system,
                <codeph>CHANGED</codeph>=a role name that exists in the system, but has changed
              since the last operation was performed).</entry></row><row><entry colname="col1"><codeph>usename</codeph></entry><entry colname="col2">name</entry><entry colname="col3"/><entry colname="col4">The name of the role that performed the operation
on this object.</entry></row><row><entry colname="col1"><codeph>actionname</codeph></entry><entry colname="col2">name</entry><entry colname="col3"/><entry colname="col4">The action that was taken on the object.</entry></row><row><entry colname="col1"><codeph>subtype</codeph></entry><entry colname="col2">text</entry><entry colname="col3"/><entry colname="col4">The type of object operated on or the subclass
of operation performed.</entry></row><row><entry colname="col1"><codeph>statime</codeph></entry><entry colname="col2">timestamptz</entry><entry colname="col3"/><entry colname="col4">The timestamp of the operation. This is the same timestamp that is written to
              the Greenplum Database server log files in case you need to look up more
              detailed information about the operation in the logs.</entry></row></tbody></tgroup></table></body></topic>